<%= header %>
<%= boomerangScript %>
<base href="/pages/05-angular/04-route-change.html" />
<script src="../../vendor/angular/angular.js"></script>
<script src="../../vendor/angular-resource/angular-resource.js"></script>
<script src="../../vendor/angular-route/angular-route.js"></script>
<script src="../../vendor/resourcetiming-compression/src/resourcetiming-decompression.js" type="text/javascript"></script>
<script>
window.angular_imgs = [5000];

window.angular_html5_mode = true;
</script>
<script src="support/app.js"></script>
<div ng-app="app">
	<div ng-view>
	</div>
</div>
<script src="114-route-change-abld.js" type="text/javascript"></script>
<script>

// view a widget then come back so debugging (F5) is easier
app.run(["$location", "$timeout", function($location, $timeout) {
	// issue a route change while the spa hard is still loading
	$timeout(function() {
		window.nav1time = BOOMR.now();
		$location.url("/widgets/10");

		// issue a route change while the spa soft is still loading
		$timeout(function() {
			window.nav2time = BOOMR.now();
			$location.url("114-route-change-abld.html");
		}, 2000);
	}, 2000);
}]);

BOOMR_test.init({
	testAfterOnBeacon: 3,
	doNotTestSpaAbort: true,
	Angular: {
		enabled: true
	},
	ResourceTiming: {
		enabled: true
	},
	instrument_xhr: true,
	autorun: false
});
</script>
<%= footer %>
